<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>作业1</title>
		<style>
			div{
				width: 400px;
				height: 300px;
				text-align: center;
				background-color: #ffe1fd ;
				line-height: 300px;
			}
			button{
				width: 100px;
				height: 50px;
				background-color: #dde4ff;
				border: 1px solid transparent;
			}
		</style>
		
		<script src="../js/jquery-1.11.1.js"></script>
	</head>
	<body>
		<button id="btn1">tab01</button>
		<button id="btn2">tab2</button>
		<button id="btn3">tab03</button>
		<div>tab文字内容1</div>
		<script>
			$("#btn1").click(function(){
				$("div").text("tab文字内容1");
				$("#btn1").css("background-color","#ffe1fd");
				$("#btn2").css("background-color","#dde4ff");
				$("#btn3").css("background-color","#dde4ff");
			});
			$("#btn2").click(function(){
				$("div").text("tab文字内容2");
				$("#btn2").css("background-color","#ffe1fd");
				$("#btn1").css("background-color","#dde4ff");
				$("#btn3").css("background-color","#dde4ff");
			});
			$("#btn3").click(function(){
				$("div").text("tab文字内容3");
				$("#btn3").css("background-color","#ffe1fd");
				$("#btn1").css("background-color","#dde4ff");
				$("#btn2").css("background-color","#dde4ff");
			});
		</script>
	</body>
</html>